/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/KeyExchange/dhCalcVerifySubgroupRequest.cpp,v 1.4 2003/11/21 12:39:24 itsme Exp $
 *
 *
 *  this is not used with the current DH parameter set.
 *
 *  it would be nescesary if we had chosen a p=2*N*q+1,
 *  with q only a 256 bit prime
 *
 */

#include "dhCalcVerifySubgroupRequest.h"

//------------------------------------------------------------------
// calculation thread
bool CalcVerifySubgroupRequest::doCalculation()
{
    debug("DH: verifying subgroup of publicvalue\n");

    Number result= m_publicval.ModularPower(m_subgroup_prime, m_modulus_prime);

    return (result==1);
}


